$(document).ready(function() {
	$('a').click(function() {
		var a = $(this).attr('href');
		if (a.indexOf('#') == 0 || a.indexOf('http://') == 0) {
			return true;
		}
		window.location.href = OLAPI.encodeApi({url:a});
		return false;
	});
});